package com.dkm.biz.ou.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.biz.ou.domain.ZmzUser;
import com.dkm.biz.ou.repository.ZmzUserRepository;
import com.dkm.biz.ou.persistence.dao.ZmzUserQueryDao;
import com.dkm.biz.ou.persistence.entity.ZmzUserPo;

/**
 * 对象功能:user Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-31 20:21:00
 */
@Repository
public class ZmzUserRepositoryImpl extends AbstractRepository<String, ZmzUserPo,ZmzUser> implements ZmzUserRepository{
	  
	@Resource
	private  ZmzUserQueryDao zmzUserQueryDao;

	public ZmzUser newInstance() {
		ZmzUserPo po = new ZmzUserPo();
		ZmzUser zmzUser = SpringHelper.getBean(ZmzUser.class);
		zmzUser.setData(po);
		return zmzUser;
	}

	public ZmzUser newInstance(ZmzUserPo po) {
		ZmzUser zmzUser = SpringHelper.getBean(ZmzUser.class);
		zmzUser.setData(po);
		return zmzUser;
	} 
	
	@Override
	protected IQueryDao<String, ZmzUserPo> getQueryDao() {
		return zmzUserQueryDao;
	}
}
